﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MyHandled.aspx.cs" Inherits="office_MyHandled" %>

<%@ Register Src="../UserControls/Calendar.ascx" TagName="Calendar" TagPrefix="uc1" %>
<%@ Register Src="../UserControls/GeneralSelect.ascx" TagName="GeneralSelect" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>我已批核的件</title>
    <link rel="stylesheet" id="skinCss" type="text/css" href="../css/default/easyui.css" />
    <link rel="stylesheet" type="text/css" href="../css/icon.css" />
    <link href="../css/page.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../ScriptFile/jquery.js"></script>
    <script type="text/javascript" src="../ScriptFile/jquery.easyui.min.js"></script>
    <script src="../ScriptFile/easyui-lang-zh_CN.js" type="text/javascript"></script>
</head>
<script type="text/javascript">
    function ViewInstanceFrame(Instance)//查询案件信息
    {
        var strURL = "../QueryAndCollect/TaskProcessView.aspx?IID=" + Instance;

        window.open(strURL, 'viewer', "height=" + (screen.availHeight - 30) + " , width=" + screen.availWidth + ", top=0, left=0,toolbar=no, menubar=no, scrollbars=no, location=n o, status=no");
    }

    function ReturnFromComplete(strIID) {
        var strOldUrl = window.location.href;
        if (strOldUrl.indexOf("&iid=") > -1) {
            strOldUrl = strOldUrl.substr(0, strOldUrl.indexOf("&iid="));
        }

        window.location.href = strOldUrl + "&iid=" + strIID + "&opera=-1";

    }
</script>
<body>
    <form id="form1" runat="server">
        <div style="width: 99%; margin: 0px auto; text-align: center;">
            <table style="width: 100%;" class="tab">
                <tr>
                    <td>办件类型：
                    </td>
                    <td style="text-align: left">
                        <asp:DropDownList ID="ddlFlow" runat="server">
                        </asp:DropDownList>
                    </td>
                    <td>受理时间:
                    </td>
                    <td colspan="2" style="text-align: left">自：<uc1:Calendar ID="startDate" runat="server" />
                        到:
                    <uc1:Calendar ID="endDate" runat="server" />

                    </td>
                    <td>
                        <asp:Label runat="server" Text="审核状态" ID="labShzt" Visible="false"></asp:Label>
                        <asp:DropDownList ID="ddlShzt" runat="server" Visible="false">
                            <asp:ListItem Value=""></asp:ListItem>
                            <asp:ListItem Value="2">审核通过</asp:ListItem>
                            <asp:ListItem Value="4">协审通过</asp:ListItem>
                            <asp:ListItem Value="-4">审核不通过</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>图件用途：
                    </td>
                    <td style="text-align: left">
                        <uc2:GeneralSelect ValidateEmpty="false" FirstEmpty="true" ID="ddlTjlb" Name="图件类别" Width="170"
                            runat="server" />
                    </td>
                    <td>送审单位：
                    </td>
                    <td style="text-align: left">
                        <asp:TextBox ID="txtName" runat="server" Width="120"></asp:TextBox>
                    </td>
                    <td>图名：
                    </td>
                    <td style="text-align: left">
                        <asp:TextBox runat="server" ID="txtTm" Width="100"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>受理编号：
                    </td>
                    <td style="text-align: left">
                        <asp:TextBox ID="txtIID" runat="server" Width="100"></asp:TextBox>
                    </td>
                    <td>审图号：
                    </td>
                    <td style="text-align: left">
                        <asp:TextBox ID="txtSth" runat="server" Width="100"></asp:TextBox>
                    </td>
                    <td>审核人：
                    </td>
                    <td style="text-align: left">
                        <asp:TextBox runat="server" ID="txtShr" Width="100"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>办结时间:
                    </td>
                    <td colspan="5" style="text-align: left">自：<uc1:Calendar ID="clBjsjStart" runat="server" />
                        到:
                    <uc1:Calendar ID="clBjsjEnd" runat="server" />

                    </td>
                </tr>
                <tr>
                    <td colspan="6">
                        <asp:Button ID="btnRefer" CssClass="input" runat="server" Text="查询" OnClick="btnRefer_Click" />
                    </td>
                </tr>
            </table>
            <controlDefine:CustomGridView ID="gvMessage" runat="server" AllowPaging="True" Width="100%"
                ShowImportButton="true" SkinID="List" HideTextLength="18" AutoGenerateColumns="False"
                CustomImportToExcel="true" ShowCmpAndCancel="False" AllowOnMouseOverEvent="False"
                ShowItemNumber="True" AutoGenerateDeleteConfirm="True" PageSize="15" ShowHideColModel="None"
                OnOnLoadData="gvMessage_OnLoadData" OnOnImportClick="gvMessage_OnImportClick">
                <PagerSettings Visible="False" />
                <Columns>
                    <asp:TemplateField HeaderText="办件编号" ItemStyle-Width="115">
                        <ItemTemplate>
                            <a href='#' onclick='ViewInstanceFrame("<%# Eval("iid") %>")'>
                                <%# Eval("iid") %></a>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField HeaderText="办件类型" DataField="wname" />
                    <asp:BoundField HeaderText="送审单位" DataField="name" />
                    <asp:BoundField HeaderText="当前岗位" DataField="step" />
                    <asp:BoundField HeaderText="审图号" DataField="scbh" />
                    <asp:BoundField HeaderText="图名" DataField="tm" />
                    <asp:BoundField HeaderText="受理编号" DataField="slh" />
                    <asp:BoundField HeaderText="规格" DataField="规格" />
                    <asp:BoundField HeaderText="图件用途" DataField="dtyt" />
                    <asp:BoundField HeaderText="签批日期" DataField="qfrq" />
                    <asp:BoundField HeaderText="办结时间" DataField="finish_time" />
                    <asp:TemplateField HeaderText="取消办结">
                        <ItemTemplate>
                            <a href='#' onclick='ReturnFromComplete("<%# Eval("iid") %>")'>退回</a>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </controlDefine:CustomGridView>
        </div>
    </form>
</body>
</html>
